package com.samuel.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/*
 * @date:2017/11/20
 * @time: 10:26
 * @author:zhaoyang
 * @desc:main
 **/
@SpringBootApplication
@EnableWebMvc
@MapperScan(basePackages = "com.samuel.demo.persist.mapper")
public class MultiModuleSpringBootDemoApplication extends WebMvcConfigurerAdapter implements CommandLineRunner{

    private Logger logger = LoggerFactory.getLogger(MultiModuleSpringBootDemoApplication.class);

    public static void main(String[] args) {

        SpringApplication.run(MultiModuleSpringBootDemoApplication.class,args);
    }

    @Override
    public void run(String... args) throws Exception {
         logger.info("服务开启动完成");
    }
}
